package com.hddisseny.hddelectric;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;

public class calefaccion extends Activity {
	// Botones de seleccion
	private Button BTT_LaunchRadiadores;
	private Button BTT_LaunchAA;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		setContentView(R.layout.calefaccion);

		BTT_LaunchRadiadores = (Button) findViewById(R.id.buttonBTT_LaunchRadiadores);
		BTT_LaunchAA = (Button) findViewById(R.id.buttonBTT_Launch_AA);

		// Si se pulsa el boton se lanza la actividad que calcula los radiadores
		// BC
		BTT_LaunchRadiadores.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(calefaccion.this, radiadores.class);
				startActivity(intent);
			}
		});

		// Si se pulsa el boton se lanza la actividad que calcula las frigorias
		// de AA
		BTT_LaunchAA.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(calefaccion.this, aires.class);
				startActivity(intent);
			}
		});

	}

}